//
//  MKImageManager.h
//  MKWebImage
//
//  Created by lily on 17/1/1.
//  Copyright © 2017年 lily. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, MKLoadOptions) {
    MKLoadDefaultOption = 1 << 0,
    MKLoadIgnoreMemoryOption = 1 << 1,
    MKLoadIgnoreDiskOption = 1 << 2
};

@class MKImageDownloader;
@interface MKImageManager : NSObject

+ (MKImageManager *)shareInstance;

- (MKImageDownloader *)downloadWithUrl:(NSString *)url option:(MKLoadOptions)options complete:(void(^)(UIImage *image, BOOL cache, NSError *error))complete;

- (void)removeLoader:(MKImageDownloader *)loader;
@end
